import os


def installModule(module: str):
    os.system('pip install {0} -i https://pypi.tuna.tsinghua.edu.cn/simple'.format(module))


def setupModule():
    try:
        import PIL
    except:
        installModule('pillow')

    try:
        import termcolor
    except:
        installModule('termcolor')
    
    try:
        import tornado
    except:
        installModule('tornado')
